Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK-67] feat: 디자인 시스템 수정 및 추가사항 반영 (색상, 아이콘, Input) #42

Merged
merged 14 commits into from
Jan 15, 2025

Conversation

dahyeo-n
Copy link
Member

📝 작업 내용

  • gray_900(#222222) color를 #1B1B1B 로 변경
  • 모달, 팝업, 알림창의 공통 배경색 background.overlay 추가
  • 새로운 아이콘 추가 (MoreVertical)
  • Input
    : 비즈니스 로직 걷어내서 재사용 가능한 컴포넌트인 BasicInput으로 변경
    • 이메일
    • 비밀번호
    • 닉네임

💬 전달사항

  1. FE & Design 회의 때 추가 요청사항으로 전달받은 'Input에 마우스 hover 했을 때의 색상을 입력 필드 클릭했을 경우의 색상과 동일하게 처리'는 아직 반영하지 못했습니다. NextUIInput을 사용하다 보니 커스텀이 불가한 부분이 좀 있어서 추후 방법을 찾으면 반영하겠습니다!

  2. 디자인 시스템 컴포넌트에선 UI만 담당해야 하기 때문에 비즈니스 로직을 걷어내는 과정에서
    2-1. Input 입력 필드에 내용 입력이 안 되는 현상이 생겼습니다. react-hook-form 및 사용하신 라이브러리에 맞춰서 수정해야 하는 부분이라 일단 그대로 두었습니다.
    2-2. SignInPage, SignUpPage에서 validation 및 메시지 로직을 추가하시거나 수정 부탁드려요.

  3. 모든 비즈니스 로직은 (리팩토링하는 등) 변형하지 않고 그 코드 그대로 SignInPage, SignUpPage에 옮겼습니다.

@dahyeo-n dahyeo-n requested a review from SangWoo9734 January 13, 2025 02:34
@dahyeo-n dahyeo-n self-assigned this Jan 13, 2025
Copy link

vercel bot commented Jan 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
momentia ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 14, 2025 1:19pm

@github-actions github-actions bot added chore 그 외 기타 수정 (ex. 오타 등) feature style 사용자 UI 디자인 변경 labels Jan 13, 2025
Copy link

github-actions bot commented Jan 13, 2025

Qodana for JS

2 new problems were found

Inspection name Severity Problems
ESLint 🔴 Failure 2

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@dahyeo-n dahyeo-n added Priority: High 우선순위 높음 Priority: Critical 우선순위 긴급 and removed Priority: Critical 우선순위 긴급 labels Jan 13, 2025
Copy link

github-actions bot commented Jan 13, 2025

Qodana for JS

25 new problems were found

Inspection name Severity Problems
Unused local symbol 🔶 Warning 5
Import can be shortened 🔶 Warning 3
Exception used for local control-flow 🔶 Warning 2
Constant conditional expression 🔶 Warning 1
Pointless statement or boolean expression 🔶 Warning 1
Redundant local variable 🔶 Warning 1
Missing await for an async function call ◽️ Notice 6
Result of method call returning a promise is ignored ◽️ Notice 3
Duplicated code fragment ◽️ Notice 1
Deprecated symbol used ◽️ Notice 1
Vulnerable declared dependency ◽️ Notice 1

☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

Copy link

github-actions bot commented Jan 14, 2025

Qodana for JS

2 new problems were found

Inspection name Severity Problems
ESLint 🔴 Failure 2

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

Copy link
Collaborator

@SangWoo9734 SangWoo9734 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

크리티컬한 점은 아니고 궁금한 점에 대해서 코멘트 달았습니다-!

xl: 'w-15 h-15',
l: 'w-7.5 h-7.5',
xl: 'w-[60px] h-[60px]',
l: 'w-[30px] h-[30px]',
m: 'w-6 h-6',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

엇 얘만 따로 변경사항이 없는데 일부러 남겨두신 걸까요? 해당 크기를 추측하는데는 어려움은 없지만 다른 값들과 포멧이 달라 다른 의도가 있는지 궁금해서 코멘트 남깁니다!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 ㅋㅋㅋㅋ m 사이즈만 Tailwind CSS 클래스에 등록돼 있어서 커스텀 하지 않고 그대로 작성했습니다! 혹시 포맷이 달라서 불편하시면 알려주셔용

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아하 아닙니다 ㅎㅎ 그대로 가도 좋습니다!

minLength={minLength}
maxLength={maxLength}
endContent={
<>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

드문 경우겠지만 endContent의 해당 요소들이 모두 true로서 보이게 되었을때 정렬 문제는 없나요? 요소들이 단순히 태그로 묶여있어서 코멘트 드렸습니다..!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

엇 디자인 시스템에 endContent가 여러 개 적용되는 Input 컴포넌트가 없습니다! 그래서 정렬 문제는 발생하지 않을 듯해여

하지만 향후 endContent가 여러 개 적용되는 컴포넌트가 생기게 되면 수정하려 합니다 :)

Comment on lines 78 to 90
{isPasswordVisible ? (
<Icon
name='Eye'
size='m'
className={`text-gray-200 ${value === '' ? 'text-gray-800' : ''}`}
/>
) : (
<Icon
name='EyeOff'
size='m'
className={`text-gray-200 ${value === '' ? 'text-gray-800' : ''}`}
/>
)}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

궁금한 점인데,

<Icon
    name={ isPasswordVisible ? 'Eye' : 'EyeOff' }
    size='m'
    className={`text-gray-200 ${value === '' ? 'text-gray-800' : ''}`}
/>

이렇게는 구현이 불가능한가요?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 이런 해당 부분 리팩토링을 깜빡했네여
바로 반영하겠습니다!

@github-actions github-actions bot added the refactor 코드 리팩토링, 주석 삭제 label Jan 14, 2025
@dahyeo-n dahyeo-n merged commit 143f05b into dev Jan 15, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore 그 외 기타 수정 (ex. 오타 등) feature Priority: High 우선순위 높음 refactor 코드 리팩토링, 주석 삭제 style 사용자 UI 디자인 변경
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants